package com.bingo.miaogou.controller;

import org.springframework.http.MediaType;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexContoller {

    @RequestMapping(value = "/index",consumes= MediaType.APPLICATION_JSON_UTF8_VALUE,produces = "application/json;charset=UTF-8",method = RequestMethod.POST)
    public String index(@RequestBody String  str) {

        System.out.println("在这里");

        return str;
    }
}
